/**
 * 
 */
package de.guidoludwig.jtm.client.shows;

import javax.swing.JComponent;
import javax.swing.table.AbstractTableModel;

import com.jgoodies.binding.adapter.BasicComponentFactory;
import com.jgoodies.binding.list.SelectionInList;

import de.guidoludwig.af.AbstractHomeView;
import de.guidoludwig.jtm.domain.Show;

/**
 * @author guido
 *
 */
public class ShowsHomeView extends AbstractHomeView<Show> {

	public ShowsHomeView(ShowsHomeModel model) {
		super(model);
		JComponent htmlPreview = BasicComponentFactory.createLabel(model.getSelectionHTMLModel());
		setPreview(htmlPreview);
	}

	@Override
	protected AbstractTableModel getTableFormat(SelectionInList<Show> sil) {
		return new ShowTableFormat(sil);
	}
	
}
